<template>
  <div>
    我是更多的更贴呀丫丫丫
    <TopNav title="精彩跟帖" />
    <CommentMain
      :commentDate="comment"
      v-for="comment in commentList"
      :key="comment.id"
    />
  </div>
</template>

<script>
import TopNav from "../components/TopNav";
import CommentMain from "../components/Comment/Main";
export default {
  components: {
    TopNav,
    CommentMain,
  },
  data() {
    return {
      commentList: [],
    };
  },
  created() {
    this.$axios({
      url: "/post_comment/" + this.$route.params.id,
    }).then((res) => {
      console.log(res.data);
      this.commentList = res.data.data;
    });
  },
};
</script>

<style>
</style>